package org.py.mymodule.submodule.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author LLF
 * @since 2023-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("website_comment")
@ApiModel(value="WebsiteComment对象", description="评论表")
public class WebsiteComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "comment_id", type = IdType.AUTO)
    private Long commentId;

    @ApiModelProperty(value = "被评论的电影的ID")
    private Long targetId;

    @ApiModelProperty(value = "评论人的ID")
    private Long accountId;

    @ApiModelProperty(value = "父级评论的id")
    private Long parentId;

    @ApiModelProperty(value = "评论的状态")
    private String status;

    @ApiModelProperty(value = "评论时的ip")
    private String ip;

    @ApiModelProperty(value = "评论的内容")
    private String content;

    @ApiModelProperty(value = "备注（审核不通过时添加）")
    private String remark;

    @ApiModelProperty(value = "版本号")
    private Integer version;

    @ApiModelProperty(value = "支持（赞）")
    private Integer support;

    @ApiModelProperty(value = "反对（踩）")
    private Integer oppose;

    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;

    @ApiModelProperty(value = "添加时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
